<template>
	<view class="wrap bgw">
		<view v-if="state == 0" class="main bt1 text-lg">
			<image class="wait" src="../../static/image/wait.png"></image>
			<p class="p1">提交成功，请等待系统审核</p>
			<p class="p2 text-df">预计一个工作日内审核完毕，审核结果会在消息中通知您</p>
		</view>	
		<view v-if="state == 2" class="main bt1 text-lg">
			<image class="wait file" src="../../static/image/file.png"></image>
			<p class="p1">审核失败</p>
			<p class="p2 text-df">{{txt}}</p>
			<view class="buttons">
				<view class="btn">
					<p @tap="goShopNews()" class="p11 fl">重新提交</p>
					<p @tap="GoIndex()" class="p22 btnbg fr">返回首页</p>
				</view>
			</view>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shakeState:0,
				state:0,
				txt:''
			};
		},
		onLoad(e) {
			if(e.state == 2){
				this.state = 2
				this.txt = e.txt
			} 
		},
		methods:{
			GoIndex(){
				if(this.shakeState == 0){
					this.shakeState = 1
					uni.redirectTo({
						url:'../index/index'
					})		
				} 
			},
			goShopNews(){
				if(this.shakeState == 0){
					this.shakeState = 1
					uni.redirectTo({
						url:'../shopNews/shopNews'
					})		
				} 
			}
		}
	}
</script>

<style lang="less" scoped>
@import 'index.less';
</style>
